﻿using Prism.Navigation.Serves;
using Prism.Navigation.ViewModels;
using Prism.Navigation.Views;
using System.Configuration;
using System.Data;
using System.Windows;
using System.Windows.Controls;

namespace Prism.Navigation
{
    /// <summary>
    /// Interaction logic for App.xaml
    /// </summary>
    public partial class App : PrismApplication
    {
        protected override Window CreateShell()
        {
            return Container.Resolve<Shell>();
        }



        protected override void RegisterTypes(IContainerRegistry containerRegistry)
        {
            containerRegistry.RegisterForNavigation<MainView,MainViewModel>();
            containerRegistry.RegisterForNavigation<LoginView, LoginViewModel> ();
            containerRegistry.RegisterForNavigation<Shell,ShellViewModel>();

            containerRegistry.RegisterForNavigation<ParentsView,ParentsViewModel>();
            containerRegistry.RegisterForNavigation<TeacherView, TeacherViewModel > ();
            containerRegistry.RegisterForNavigation<StudentView, StudentViewModel>();

            containerRegistry.RegisterSingleton<UserSession>();
            containerRegistry.RegisterSingleton<DbContext>();

        }
    }

}
